/*
 * file name:ms_tick.h
 * version :v1.0.0
 * Change Logs:
 * Date             Author      	main change
 * 2025-03-12     	lanxin          the first version
 *
*/

/********************************************* READ ME BEGIN *************************************************************/

/* Brief:
 *
 * * 1.模拟的 ms 时间戳。
 *
*/

/********************************************* READ ME END ***************************************************************/

#ifndef _ms_tick_h
#define _ms_tick_h

/* source file */
#include "sys/time.h"//need time_t struct timeval head file.

/* public define */
#ifndef MT_PUT_TO_RAM
	#define MT_PUT_TO_RAM
#endif

/* variable typedef */

/* function typedef */

/* variable declaration for other to use */

/* function declaration for other to use */
MT_PUT_TO_RAM void ms_tick_increase ( void );

MT_PUT_TO_RAM uint64_t ms_tick_get ( void );
MT_PUT_TO_RAM time_t ms_tick_get_time ( time_t *time );
MT_PUT_TO_RAM struct timeval ms_tick_get_timeval ( struct timeval *tv );

MT_PUT_TO_RAM void ms_tick_set ( uint64_t time );
MT_PUT_TO_RAM void ms_tick_set_time ( time_t *time );
MT_PUT_TO_RAM void ms_tick_set_timeval ( const struct timeval *tv );

MT_PUT_TO_RAM time_t ms_tick_check_second_time ( void );

#endif /* _ms_tick_h */
